package com.hotel.mapper;

import com.hotel.entity.Room;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 夏智力
 * @FileName RoomMapper
 * @date 2021/6/21 22:16
 * @Software: IntelliJ IDEA
 */
@Mapper
public interface RoomMapper {

    List<Room> selectRoom();

    List<Room> selectRoomByTypeId(int typeId);

    List<Room> selectRoomByTypeName(String typeName);

    Room selectRoomByRoomName(String roomName);

    int addRoom(Room room);

    int updateRoom(Room room);

    int deleteRoom(int id);
}
